/**
 * Lockbox
 * A Password and Secret Information Manager.
 *
 * This class shows files to be imported into Lockbox and performs
 * the actual import.
 *
 * Creator:	Carsten Heinelt
 * Version:	16-Feb-2008
 */

#import <CoreFoundation/CoreFoundation.h>
#import <Foundation/Foundation.h>
#import <UIKit/UIHardware.h>
#import <UIKit/UIApplication.h>
#import <UIKit/UIKit.h>
#import <UIKit/UIView.h>
#import <UIKit/UIPreferencesTable.h>
#import <UIKit/UIPreferencesTableCell.h>
#import <UIKit/UITable.h>
#import <UIKit/UITableColumn.h>
#import <UIKit/UITableCell.h>
#import <UIKit/UIImageAndTextTableCell.h>
#import <UIKit/UINavigationBar.h>

#define NAVBAR_HEIGHT (45.0f)

@interface LockboxImportView : UIView
{
  UINavigationBar *navBar;
  UINavigationItem *navTitle;
  UITable *table;
  id delegate;
  NSMutableArray *files;
  LockboxStorage *_storage;
}

- (id)initWithFrame:(struct CGRect)frame app:(id)app;

- (void)getFiles;

- (BOOL)eraseFile:(NSString*)filePath;

- (BOOL) table:(UITable *) table canDeleteRow:(int) row;

- (BOOL) table:(UITable *) table canMoveRow:(int) row;

- (void)tableRowSelected:(NSNotification *)notification;

- (int)numberOfGroupsInPreferencesTable:(UIPreferencesTable *)table;
- (int)preferencesTable:(UIPreferencesTable *)table numberOfRowsInGroup:(int)group;
- (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForGroup:(int)group;
- (UIPreferencesTableCell *)preferencesTable:(UIPreferencesTable *)table cellForRow:(int)row inGroup:(int)group;
- (float)preferencesTable:(UIPreferencesTable *)aTable heightForRow:(int)row inGroup:(int)group withProposedHeight:(float)proposed;

@end
